﻿namespace 多视图导航.ViewModels
{
    using DynamicData;
    using ReactiveUI;
    using System.Windows.Input;
    public class MainWindowViewModel : ViewModelBase
    {
#pragma warning disable CA1822 // Mark members as static
        public string Greeting => "Welcome to Avalonia!";
#pragma warning restore CA1822 // Mark members as static
        public MainWindowViewModel()
        {
            _CurrentPage = Pages[0];
        }

        private readonly PageViewModelBase[] Pages =
{
            new HomeViewModel()
        };
        private PageViewModelBase _CurrentPage;
        public PageViewModelBase CurrentPage
        {
            get { return _CurrentPage; }
            private set { this.RaiseAndSetIfChanged(ref _CurrentPage, value); }
        }


    }
}
